package com.xzy.service;

import com.xzy.mapper.InsertData;
import com.xzy.pojo.Price;
import com.xzy.pojo.Product;
import com.xzy.pojo.ProductImage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by css on 2018/8/20.
 */
@Service
public class InsertService {
    @Autowired
    private InsertData insertData;
    public void insert(Product product, ProductImage productImage, Price price){
        insertData.insertProduct(product);
        insertData.insertImage(productImage);
        insertData.insertPrice(price);
    }
}
